// base64图片
import logo from '@/assets/images/logo.png'

export default {
  install (app: any) {
    app.directive('error', {
      // Vue3跟vue2中自定义指令的钩子有所不一样，看文档 https://cn.vuejs.org/guide/reusability/custom-directives.html#directive-hooks
      mounted (el: HTMLImageElement) {
        el.src = logo
      }
    })
  }
}
